#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>           /* For O_* constants */
#include <sys/stat.h>        /* For mode constants */
#include <semaphore.h>
#include <unistd.h>

sem_t *boat_sem;

int main(int argc, char** argv) {

    if ((boat_sem = sem_open("/boat.sem", 0)) == SEM_FAILED) {
        fprintf(stderr, "Fudeu!\n");
    }

    sem_post(boat_sem);
    return (EXIT_SUCCESS);
}